<include file="public:header" />
<div class="allpagetop">公告管理<strong>/</strong>编辑<strong>/</strong>{$show.title}</div>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	        <div class="ptit">公告管理</div>
				<div class="topnav">
			        	<a href="{:RU('notice/add')}" <if condition="ACTION_NAME eq 'add'">class="select"</if>>添加</a>
					   <a href="{:RU('notice/lists')}" <if condition="ACTION_NAME eq 'lists'">class="select"</if>>列表</a>
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
		
    <div class="toptit">添加公告</div>
  <form action="{:RU('notice/edit')}" method="post"   name="FormData" id="FormData" >
  <input name="id" type="hidden" value="{$show.id}" />
	  <div class="admin_form_main">
	  
	    <div class="fl">公告标题:</div>
		<div class="fr"><input name="title" type="text"  class="input_text_default" maxlength="60" placeholder="请在这里输入公告标题" value="{$show.title}"/></div>
		<div class="fl">公告内容:</div>
		<div class="fr">
		<textarea id="content" name="content"   style="width:680px;height:300px;visibility:hidden;" >{$show.content}</textarea>
		</div>
		<div class="fl"></div>
		<div class="fr">
		  <div class="admin_submit small gray" id="J_moreform">更多选项</div>
		</div>
		<div class="clear"></div>
		<div class="moreform">
					  <div class="fl">是否显示:</div>
					  <div class="fr">
						  <div class="imgchecked <if condition="$show.is_display eq 1 "> select</if>">
						   <input name="is_display" type="hidden" value="{$show.is_display}" />
						   </div>
					  </div>
					  
						 
								  <div class="fl">标题加粗:</div>
								  <div class="fr">
										   <div class="imgchecked <if condition="$show.tit_b eq 1 "> select</if>">
										   <input name="tit_b" type="hidden" value="{$show.tit_b}" />
										  </div>
								  </div>
								  <div class="fl">公告排序:</div>
								  <div class="fr">
									<input name="sort" type="text"  class="input_text_default" id="sort" maxlength="8" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"   placeholder="数字越大越靠前，默认是0" value="{$show.sort}"/>
					  </div>
								  <div class="fl">外部链接:</div>
								  <div class="fr">
									<input name="is_url" type="text"  class="input_text_default" maxlength="80" placeholder="请输入完整的链接地址,如http://www.d163.net/id=123" value="{$show.is_url}"/>
					  </div>
								  <div class="fl">Keywords:</div>
								  <div class="fr">
									<input name="seo_keywords" type="text"  class="input_text_default" maxlength="150" placeholder="合理设置Keywords有利于搜索引擎排名" value="{$show.Seo_keywords}"/>
					  </div>
								  <div class="fl">Dscription:</div>
								  <div class="fr">
									<input name="seo_dscription" type="text"  class="input_text_default" maxlength="150" placeholder="合理设置Dscription有利于搜索引擎排名" value="{$show.seo_dscription}"/>
					  </div>
					  <div class="clear"></div>
	    </div>
		
		 <div class="fl"></div>
		<div class="fr">
		<input name="" type="submit" class="admin_submit big"    value="保存公告"/>
		<input name=""  type="button" class="admin_submit big"    value="返回" onclick="history.go(-1)"/>
		</div>
		
		<div class="clear"></div>
		
	  </div>
  
  
 
  
  
   
  </form>
</div>
<include file="public:footer" />
<link   href="__ROOT__/{:C('YTATA_ADMINTPL_DIR')}/public/js/kindeditor/themes/default/default.css" rel="stylesheet" />
<script src="__ROOT__/{:C('YTATA_ADMINTPL_DIR')}/public/js/kindeditor/kindeditor-min.js"></script>
<script src="__ROOT__/{:C('YTATA_ADMINTPL_DIR')}/public/js/kindeditor/lang/zh_CN.js"></script>
<script>
      var editor;
	  var K_uploadUrl = "__ROOT__/index.php?m=home&c=Upload&a=img&type=kindeditor_img";
      KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
          uploadJson :K_uploadUrl,
         filePostName : 'kindeditor_img',
          allowFileManager : true
        });
        K('input[name=Submit2]').click(function(e) {
          editor.html('');
        });
      });
</script>
</body>
</html>